package com.linhai.scm.dao.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.linhai.scm.dao.IUserDao;
import com.linhai.scm.entity.base.User;

@Repository("UserDao")
public class UserDao extends BaseDao<User> implements IUserDao {
	
	public boolean auth(User user) {
		Map<String,Object> values=new HashMap<String,Object>();
		values.put("userName", user.getUserName());
		values.put("userPwd", user.getUserPwd());
		if(isExist(values)){
			return true;
		}
		return false;
	}
	
}
